package com.github.dengmin.mysql.shiro.service;

import com.github.dengmin.mysql.shiro.jwt.JwtToken;

import javax.servlet.http.HttpServletResponse;

/**
 * @Author dengmin
 * @Created 2020/8/17 上午9:59
 */
public interface ShiroLoginService {

    /**
     * 如果当前时间+倒计时 大于 过期时间 则刷新token 并更新缓存
     * 当前token失效 返回新的token
     * @param jwtToken
     * @param httpServletResponse
     */
    void refreshToken(JwtToken jwtToken, HttpServletResponse httpServletResponse) throws Exception;

}
